package com.woniuxy.cloud.dto;



import java.util.List;

/**
 * 分页返回的泛型
 *
 * @param <T>
 */

public class BaseDto<T> {

    private Long indexPage;

    private Long pageCount;
    
    private Long total;

    private boolean hasPrevious;

    private boolean hasNext;

    private List<T> list;

    @Override
    public String toString() {
        return "BaseDto{}";
    }

    public BaseDto() {
    }

    public BaseDto(Long indexPage, Long pageCount, Long total, boolean hasPrevious, boolean hasNext, List<T> list) {
        this.indexPage = indexPage;
        this.pageCount = pageCount;
        this.total = total;
        this.hasPrevious = hasPrevious;
        this.hasNext = hasNext;
        this.list = list;
    }

    public Long getIndexPage() {
        return indexPage;
    }

    public void setIndexPage(Long indexPage) {
        this.indexPage = indexPage;
    }

    public Long getPageCount() {
        return pageCount;
    }

    public void setPageCount(Long pageCount) {
        this.pageCount = pageCount;
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public boolean isHasPrevious() {
        return hasPrevious;
    }

    public void setHasPrevious(boolean hasPrevious) {
        this.hasPrevious = hasPrevious;
    }

    public boolean isHasNext() {
        return hasNext;
    }

    public void setHasNext(boolean hasNext) {
        this.hasNext = hasNext;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }
}
